package com.kgc.onlineLife.mapper;

import com.kgc.onlineLife.bean.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created On : 2022/4/17.
 * <p>
 * Author     : 98730
 * <p>
 * Description: OrderItemMapper
 */
public interface OrderItemMapper {

    List<OrderItem> selectByCustomerId(@Param("cstid") int cstid);

    int updateById(OrderItem orderItem);

    int insertCart(OrderItem orderItem);

    int deletCartById(@Param("id") int id);

    OrderItem selectById(@Param("id") int id);

    /**
    * @author: HarryXzy
    * @date: 2022/4/19 8:39 上午
    * @return:
    * @description: 查出当前订单下的所有订单项
    **/
    List<OrderItem> selectByOid(Integer id);

    int updateOrderitemOid(@Param("id") Integer id, @Param("oid") Integer oid);
}
